package com.ruoyi.common.enums;

/**
 * 接口调用返回码
 * @author tan.lao
 *
 */

public enum ResultCodeEnum {

	SUCCESS(0,"调用成功"),
	UNKNOWN(1000,"未知异常"),
	SYSTEM_ERROR(1001,"系统繁忙，请稍候重试"),
	PARAM_ERROR(1002,"参数错误"),
	NOREGISTER_ERROR(1003,"用户未注册"),
	PASSWORD_ERROR(1004,"密码错误"),
	USER_FROZEN(1005,"商户违反平台相关规定已被冻结"),
	NOCHANNEL_ERROR(1006, "暂无可用通道"),
	NOTEXIST_ORDER(1007, "订单不存在"),
	UPDATE_USER_FAILED(1008, "更新用户信息失败"),
	FROZEN_USER_FAILED(1009, "冻结用户失败"),
	OP_ERROR(1010, "操作处理失败"),
	ADD_ORDER_ERROR(1011, "发起付款失败"),
	CHANNEL_ERROR(1012, "通道不存在或者不可用"),
	LOGIN_FAILED(1013, "用户名不存在或密码错误"),
	NOT_PAY_SUCC(1014, "no"),
	ORDER_STATUS_ERROR(1015, "订单状态错误"),
	PAY_TIMEOUT_ERROR(1016, "订单支付超时"),
	NO_AVAILABLE_RECIPIENT(1017, "没有在线且可用的收款号"),
	EXISTS_RECIPIENT(1018, "收款号已存在"),
	NO_LOGIN(1019, "请先登录"),
	REPEAT_ADD_ACCOUNT(1020, "重复开户"),
	NO_ACCOUNT(1021, "账户未开通"),
	RECHARGE_ERROR(1022, "充值失败"),
	ROBOT_VALID_ERROR(1023, "机器人校验失败"),
	MAX_MONEY_WITHDRAW(1024, "最多可提现%s元"),
	NOTENOUGH_MONEY(1025, "可用余额不足"),
	NOTENOUGH_FROZEN(1026, "可解冻的冻结金额不足"),
	OLDPWD_ERROR(1027, "原密码错误"),
	NO_UID(1028,"uid不存在"), NOTIFY_NOSUCC(1029, "返回内容不是大写SUCCESS，请联系对接技术检查回调接口"),
	ORDER_NOT_PAYSUCC(1030, "订单不是支付成功状态"),
	NO_AVAILABLE_AMOUNT(1031, "当前没有可浮动金额使用，请稍后再试"),
	NO_RECORD(1032, "要操作的记录不存在或已被删除"),
	ONLY_TIMEOUT_PAYSUCC(1033, "只能处理用户超时支付的异常订单"),
	NOTMATCH_RECIPIENT(1034, "输入的收款号不正确"),
	NOTMATCH_REALMONEY(1035, "到账金额与实际金额不匹配"),
	ESIXTS_LOGINNAME(1036, "用户名已存在"),
	ESIXTS_PHONE(1037, "手机号已存在"),
	ESIXTS_EMAIL(1038, "邮箱已存在"),
	NOVALID_OP(1039, "对不起，当前账号没有权限进行该操作"),
	TEST_ORDER_LIMIT(1040,"请不要频繁下单，5秒后再试"),
	ORDER_STATUS_ERROR2(1042, "订单已关闭或已经支付成功"),
	NOT_RECIPIENT(1043, "该收款号不存在"),
	JHM_REQUIRE_PWD(1044, "银联条码付类型必须传入密码"),
	JHM_LOGIN_FAIL(1045, "银联条码付登录失败，请验证账号和密码是否正确"),
	ALIPAY_SERVER_ERROR(1046, "支付宝接口调用异常"),
	ERROR_TOKEN(1047,"输入的token无效"),
	NOT_MY_AGENTS(1048, "仅允许直属代理操作"),
	ORDERID_FORMAT_ERROR(1049, "订单号格式错误"),
	NO_WITHDRAW_UID(1050, "字段withdrawUID不能为空"),
	NO_TEST_USER(1051, "没有测试商户，请在商户管理添加"),
	EXISTS_CARD_NO(1052,"卡号已存在"),
	NOEXISTS_CARD_NO(1053, "卡号不存在"),
	MIN_PER_WITHDRAW(1054, "单笔最小提现金额为%s元"),
	MAX_PER_WITHDRAW(1055, "单笔最大提现金额为%s元"),
	ORDER_LIMIT_MIN_MONEY(1056, "通道%s的单笔最小下单金额为%s元"),
	ORDER_LIMIT_MAX_MONEY(1057, "通道%s的单笔最大下单金额为%s元"),
	MUST_SET_SHOPNICK(1058, "店长昵称必须设置"),
	EXISTS_SHOPNICK(1059, "该店长昵称已经存在"),
	NOT_INIT_PAYPWD(1060, "支付密码尚未设置，请在右上角点击你的商户名-设置支付密码"),
	ERR_PAYPWD(1061, "支付密码错误");


	private final Integer code;

	private final String message;

	ResultCodeEnum(Integer code, String message) {
		this.code = code;
		this.message = message;
	}


	public Integer getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}
}
